<template>
  <div class="not-found">
    <div class="content">
      <div class="image-container">
        <img src="../assets/404.png" alt="404 Not Found" class="not-found-image" />
      </div>
      <h1 class="title">页面不存在</h1>
      <p class="description">您访问的页面不存在或已被移除</p>
      <t-space>
        <t-button theme="primary" @click="goHome">返回首页</t-button>
        <t-button theme="default" @click="goBack">返回上一页</t-button>
      </t-space>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}

const goBack = () => {
  router.back()
}
</script>

<style scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f7f9fc;
}

.content {
  text-align: center;
  padding: 40px;
}

.image-container {
  margin-bottom: 24px;
}

.not-found-image {
  max-width: 300px;
}

.title {
  font-size: 28px;
  font-weight: 600;
  color: #0052D9;
  margin-bottom: 16px;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}
</style> 